package com.dai.listener;

import org.flowable.engine.delegate.TaskListener;
import org.flowable.task.service.delegate.DelegateTask;

public class mylistener01 implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        System.err.println("当前的监听器mylistener01执行了---------"+delegateTask.getEventName());
        if (EVENTNAME_CREATE.equals(delegateTask.getEventName())){
            delegateTask.setAssignee("小戴");
        }

    }
}
